/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: Nurhat Uca
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_test_log_headerCriteria extends AbstractORMCriteria {
    public final IntegerExpression id;
    public final IntegerExpression designTreeId;
    public final IntegerExpression designPartType;
    public final IntegerExpression result;
    public final IntegerExpression parentId;
    public final StringExpression name;
    public final StringExpression dateExecuted;
    public final StringExpression guid;
    public final StringExpression executionGuid;
    public final StringExpression parentGuid;

    public T_test_log_headerCriteria(Criteria criteria) {
	super(criteria);
	id = new IntegerExpression("id", this);
	designTreeId = new IntegerExpression("designTreeId", this);
	designPartType = new IntegerExpression("designPartType", this);
	result = new IntegerExpression("result", this);
	parentId = new IntegerExpression("parentId", this);
	name = new StringExpression("name", this);
	dateExecuted = new StringExpression("dateExecuted", this);
	guid = new StringExpression("guid", this);
	executionGuid = new StringExpression("executionGuid", this);
	parentGuid = new StringExpression("parentGuid", this);
    }

    public T_test_log_headerCriteria(PersistentSession session) {
	this(session.createCriteria(T_test_log_header.class));
    }

    public T_test_log_headerCriteria() throws PersistentException {
	this(org.testis.orm.manager.TestisDbPersistentManager.instance()
		.getSession());
    }

    public T_test_log_header uniqueT_test_log_header() {
	return (T_test_log_header) super.uniqueResult();
    }

    public T_test_log_header[] listT_test_log_header() {
	return (T_test_log_header[]) super.list().toArray(
		new T_test_log_header[super.list().size()]);
    }
}
